home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / QuickDraw GX / SetDefaultDTP / ReadMe < prev    next >
Encoding:
Text File  |  1995-12-08  |  933 b   |  21 lines  |  [TEXT/ttxt]

  1. /**********************************************************************
  2.     SetDefaultDTP
  3.     
  4.     This application demonstrates how to send an AppleEvent to the Finder
  5.     that will cause a new default desktop printer to be selected.
  6.     
  7.     The user interface consists of a dialog that collects a string that
  8.     is the name of a desktop printer. Upon hitting the default button,
  9.     the application forms an AppleEvent and sends it off to the Finder.
  10.  
  11.   The AppleEvent is constructed by getting the address of the Finder,
  12.   generating a core event to a Finder extension, and adding a direct
  13.   object which specifies the GX printing extension, the set default
  14.   printer command, and the desktop printer name.
  15.     
  16.     If the Printing Finder Extension (part of QuickDraw GX) is installed
  17.   and a valid desktop printer was specified then that printer should
  18.   become the default printer.
  19.     
  20. /**********************************************************************
  21.